<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>块、行内、行内块</title>
		<style>
			div{
				width: 500px;
				height: 100px;
				background-color: pink;
			}
			.span1{
				display: inline-block;
				width: 100px;
				height: 100px;
				background-color: deeppink;
			}
			a{
				width: 100px;
				height: 100px;
				background-color: deeppink;
			}
			ul li{
				position: relative;
				float: left;
				list-style: none;
			}
			ul li:after{
				position: absolute;
				/*top: 10px;*/
				content: "ceshi";
			}
			ul li:before{
				position: absolute;
				/*top: 2px;*/
				content: "ceshi1";
			}
			.span2{
				position: absolute;
			}
		</style>
	</head>
	<body>
		<div>这是块元素</div>测试内容1
		<span class="span1">这是行内元素</span><br>
		<a href="#">这是a元素</a>测试内容3
		<ul>
			<li><span class="span2">这是行内元素</span><br><a href="#">这是a1元素</a></li>
			<li><span class="span2">这是行内元素</span><br><a href="#">这是a2元素</a></li>
			<li><span class="span2">这是行内元素</span><br><a href="#">这是a3元素</a></li>
		</ul>
	</body>
</html>
